#include "script_manage.h"
#include<bits/stdc++.h>

#pragma once

class script_manager {
public:
    script_manager();
    script_manager(string sm_password);
    void inputbook(script_item* input, int n);
    void removebook(std::string name, int n);
    void display_by_publisher(std::string publisher);
    void display_by_writer(std::string Writer);
    void display_bro(std::string name);

public:
    string sm_password;
};
void traverse_by_publisher(std::string publisher, vector<script_item>& rec, Node *cursor);
void traverse_by_writer(std::string Writer, vector<script_item>& rec, Node* cursor);